<script src="http://a.tbcdn.cn/apps/top/x/sdk.js?appkey=<{$appkey}>"></script>
<script src="/assets/js/jquery.js"></script>
<script src="/assets/js/kissy.js"></script>
<script>
KISSY.getScript("http://www.taobao.com/go/app/tmall/login-api.php?"+Math.random())  
/*
$.getScript("http://www.taobao.com/go/app/tmall/login-api.php?"+Math.random(),function(data,status){
	alert(userCookie._nk_);	
	alert(userCookie.mt);
	
});
*/
</script>
<script>
TOP.init({ 
       appKey :12587554,//appkey 
      channelUrl : 'http://think.jackc.com/channel.html' ,
	  auth :1,
	  status : 1
});
TOP.ui('login-btn', {
	container: '#taobao-login',//组件容器
	showAvatar: true, //是否显示头像
	showUserLink: true,//是否生成链接 
	showLogout: true, //是否显示退出
	callback: {
		login:function (){
			alert('login success!');
		}, //登录成功回调函数
		logout: null//退出成功回调函数
        }})
</script>
<div id="taobao-login"> </div>
